package com.eorchis.module.reply.service.impl;

import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import com.eorchis.core.basedao.dao.IDaoSupport;
import com.eorchis.core.basedao.entity.IBaseEntity;
import com.eorchis.core.service.impl.AbstractBaseService;
import com.eorchis.module.reply.dao.IReplyDao;
import com.eorchis.module.reply.domain.Reply;
import com.eorchis.module.reply.service.IReplyService;
import com.eorchis.module.reply.ui.commond.ReplyValidCommond;

/**
 * Title: ReplyServiceImpl<br>
 * Description: 消息回复表管理业务接口实现<br>
 * Company: GoldGov<br>
 * Copyright @ 2012 GoldGov .All rights reserved.<br>
 * @author RongSL
 * @createDate 2016-05-06
 * @version $Revision$
 */
// 声明本类为Server实现类，声明bean名称
@Service(value = "com.eorchis.module.reply.service.impl.ReplyServiceImpl")
public class ReplyServiceImpl extends AbstractBaseService implements IReplyService {

	@Resource(name = "com.eorchis.module.reply.dao.impl.ReplyDaoImpl")
	private IReplyDao replyDao;

	@Override
	public IDaoSupport getDaoSupport() {
		return replyDao;
	}

	@Override
	@SuppressWarnings("unchecked")
	public ReplyValidCommond toCommond(IBaseEntity entity) {
		return new ReplyValidCommond((Reply)entity);
	}

}
